<?php
class FenzuparttypeModel extends Action{
	//test
	//
	//############test
	public function getparttypelsbyfenzuid($fenzuid){
		$info=collectinfo(__METHOD__,'$fenzuid',array($fenzuid));
		if(isset($fenzuid)===false){return createarrerr('error_code','fenzuid 不能为空',$info);}//防止NULL
		
		$fenzuparttype=M('fenzuparttype');
		$parttypels=$fenzuparttype->join('tb_parttype ON f_fenzuparttype_parttypeid=parttypeid')->where("f_fenzuparttype_fenzuid=".$fenzuid)->select();

		return createarrok('ok',$parttypels,'',$info);
	}

} 
?>